const studentList = r => require.ensure([],()=>r(require('@/components/school/student/list')),'studentList')
const studentDetail = r => require.ensure([],()=>r(require('@/components/school/student/detail')),'studentDetail')
const teacherList = r => require.ensure([],()=>r(require('@/components/school/teacher/list')),'teacherList')
const teacherDetail = r => require.ensure([],()=>r(require('@/components/school/teacher/detail')),'teacherDetail')


export default [
  {
    path: '/teacher/:id',
    name: 'teacher',
    component: teacherDetail

  },
  {
    path: '/teacher',
    name: 'teacherList',
    component: teacherList
  },
  {
    path: '/student/:id',
    name: 'student',
    component: studentDetail

  },
  {
    path: '/student',
    name: 'studentList',
    component: studentList
  }
]
